﻿<catel:UserControl x:Class="Catel.Articles._03___MVVM.Examples.NestedUserControls.Chair"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:NestedUserControls="clr-namespace:Catel.Articles._03___MVVM.Examples.NestedUserControls"
                   xmlns:catel="http://catel.codeplex.com"
                   x:TypeArguments="NestedUserControls:ChairViewModel">
    <!-- Content -->
    <Grid>
        <!-- Row definitions -->
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <!-- Column definitions -->
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <!-- Name -->
        <TextBox Grid.Row="0" Text="{Binding Name}" />

        <!-- Creation date -->
        <Label Grid.Row="1" ContentStringFormat="Constructed at {0:HH:mm:ss.fff}" Content="{Binding ViewModelConstructionTime}" />
    </Grid>
</catel:UserControl>
